package org.thread.Homework03;/*
 *@Author: gjh
 *Date: 2025/3/11 19:33
 *Describe:
 */

public class MyThread extends Thread{
    public String filmName;

    public MyThread(String filmName) {
        this.filmName = filmName;
    }

    @Override
    public void run() {
        for (int i = 1; i <= 50; i++) {
            System.out.println("电影："+filmName+"已卖票数"+i);
        }
    }
}
